'use strict';

const BaseController = require('./base');

class FileController extends BaseController {

  async uploadFile() {
    const { ctx } = this;
    let result = await ctx.service.sys.file.uploadFile();
    this.success(result);
  }

  async deleteFile() {
    const { ctx } = this;
    let result = await ctx.service.sys.file.deleteFile(ctx.request.body);
    this.success(result);
  }

}

module.exports = FileController;
